package com.baizhi.bzmall.admin.service;

import com.baizhi.bzmall.entity.BzAdmin;
import com.baizhi.bzmall.entity.BzAdminRole;
import com.baizhi.bzmall.entity.BzRole;
import com.baizhi.bzmall.entity.BzRoleResource;

import java.util.List;

public interface RoleService {
    public List<BzRole> selectAll();
    //根据用户id查询出该用户下面的角色
    public List<BzAdminRole> selectRoleByAdmin(int adminId);
    //根据角色id查询出该角色下面的权限信息
    public List<BzRoleResource> selectResourceByRole(int roleId);
    void grantPermessionToRole(int roleId,int[] perIds);
}
